<h1>Listing blogs</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Kicker</th>
    <th>Created at</th>
    <th>Updated at</th>
    <th>Published at</th>
    <th>Active</th>
  </tr>
  
<% for blog in @blogs %>
  <tr>
    <td><%=h blog.name %></td>
    <td><%=h blog.kicker %></td>
    <td><%=h blog.created_at %></td>
    <td><%=h blog.updated_at %></td>
    <td><%=h blog.published_at %></td>
    <td><%=h blog.active %></td>
    <td><%= link_to 'Show', blog_path(blog) %></td>
    <td><%= link_to 'Edit', edit_blog_path(blog) %></td>
    <td><%= link_to 'Destroy', blog_path(blog), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New blog', new_blog_path %>